package cn.gson.fengboot.controller;

import cn.gson.fengboot.model.pojos.Tfyempoperation;
import cn.gson.fengboot.model.service.TfyempoperationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@Controller
public class TfyempoperationController {
    @Autowired
    TfyempoperationService tfyempoperationService;

    @RequestMapping("/findAllcz-list")
    @ResponseBody
    public List<Tfyempoperation> findAllcz(Integer clientId){
        //根据客户id查询 操作记录
        return tfyempoperationService.findAllcz(clientId);
    }

    @RequestMapping("/findAlllxrcz-list")
    @ResponseBody
    public List<Tfyempoperation> findAlllxrcz(Integer linkmanId){
        //根据联系人id查询 操作记录
        return tfyempoperationService.findAlllxrcz(linkmanId);
    }

    @RequestMapping("/findAllxscz-list")
    @ResponseBody
    public List<Tfyempoperation> findAllxscz(Integer clueId){
        //根据线索id查询 操作记录
        return tfyempoperationService.findAllxscz(clueId);
    }
}
